import request from '../../utils/Request'

export const saveRepair = data =>{
    return request({
        method: 'post',
        url: '/api/repair/repair/save',
        data: data
    })
}

export const deleteRepair = bid =>{
    return request({
        method: 'get',
        url: '/api/repair/repair/delete/' + bid,
        params: {}
    })
}

export const selectRepair = bid =>{
    return request({
        method: 'get',
        url: '/api/repair/repair/select/' + bid,
        params: {}
    })
}

export const listRepair = (data,current,size) => {
    data.current = current
    data.size = size
    return request({
        method: 'get',
        url: '/api/repair/repair/list',
        params:data
    })
}

export const updateStatus = bid =>{
    return request({
        method: 'get',
        url: '/api/repair/repair/update/status/' + bid,
        params:{}
    })
}
